#include "cunittype.h"

CUnitType::CUnitType(QObject *parent) :
    CObject(parent)
{
//    m_id = KInvalidId;
    m_name = KNullString;
}

//int CUnitType::id() {
//    return m_id;
//}

//void CUnitType::setId(int id) {
//    if (m_id != id) {
//        m_id = id;
//        emit idChanged();
//    }
//}

QString CUnitType::name() {
    return m_name;
}

void CUnitType::setName(QString name) {
    if (m_name != name) {
        m_name = name;
        emit nameChanged();
    }
}
